import request from '@/utils/request'

// 查询用户房屋优势列表
export function listADictAdvantageUser(query) {
  return request({
    url: '/system/aDictAdvantageUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户房屋优势详细
export function getADictAdvantageUser(id) {
  return request({
    url: '/system/aDictAdvantageUser/' + id,
    method: 'get'
  })
}

// 新增用户房屋优势
export function addADictAdvantageUser(data) {
  return request({
    url: '/system/aDictAdvantageUser',
    method: 'post',
    data: data
  })
}

// 修改用户房屋优势
export function updateADictAdvantageUser(data) {
  return request({
    url: '/system/aDictAdvantageUser',
    method: 'put',
    data: data
  })
}

// 删除用户房屋优势
export function delADictAdvantageUser(id) {
  return request({
    url: '/system/aDictAdvantageUser/' + id,
    method: 'delete'
  })
}

// 逻辑删除用户房屋优势
export function logicDelADictAdvantageUser(id) {
  return request({
    url: '/system/aDictAdvantageUser/logicDel/' + id,
    method: 'delete'
  })
}
